Optimal. Leaf size=46 \[ -\frac {a+b \tanh ^{-1}\left (\frac {c}{x^2}\right )}{x}+\frac {b \tan ^{-1}\left (\frac {x}{\sqrt {c}}\right )}{\sqrt {c}}+\frac {b \tanh ^{-1}\left (\frac {x}{\sqrt {c}}\right )}{\sqrt {c}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 46, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {6097, 263, 212, 206, 203} \[ -\frac {a+b \tanh ^{-1}\left (\frac {c}{x^2}\right )}{x}+\frac {b \tan ^{-1}\left (\frac {x}{\sqrt {c}}\right )}{\sqrt {c}}+\frac {b \tanh ^{-1}\left (\frac {x}{\sqrt {c}}\right )}{\sqrt {c}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 206
Rule 212
Rule 263
Rule 6097
Rubi steps
\begin {align*} \int \frac {a+b \tanh ^{-1}\left (\frac {c}{x^2}\right )}{x^2} \, dx &=-\frac {a+b \tanh ^{-1}\left (\frac {c}{x^2}\right )}{x}-(2 b c) \int \frac {1}{\left (1-\frac {c^2}{x^4}\right ) x^4} \, dx\\ &=-\frac {a+b \tanh ^{-1}\left (\frac {c}{x^2}\right )}{x}-(2 b c) \int \frac {1}{-c^2+x^4} \, dx\\ &=-\frac {a+b \tanh ^{-1}\left (\frac {c}{x^2}\right )}{x}+b \int \frac {1}{c-x^2} \, dx+b \int \frac {1}{c+x^2} \, dx\\ &=\frac {b \tan ^{-1}\left (\frac {x}{\sqrt {c}}\right )}{\sqrt {c}}-\frac {a+b \tanh ^{-1}\left (\frac {c}{x^2}\right )}{x}+\frac {b \tanh ^{-1}\left (\frac {x}{\sqrt {c}}\right )}{\sqrt {c}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 72, normalized size = 1.57 \[ -\frac {a}{x}-\frac {b \tanh ^{-1}\left (\frac {c}{x^2}\right )}{x}-\frac {b \log \left (\sqrt {c}-x\right )}{2 \sqrt {c}}+\frac {b \log \left (\sqrt {c}+x\right )}{2 \sqrt {c}}+\frac {b \tan ^{-1}\left (\frac {x}{\sqrt {c}}\right )}{\sqrt {c}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.53, size = 159, normalized size = 3.46 \[ \left [\frac {2 \, b \sqrt {c} x \arctan \left (\frac {x}{\sqrt {c}}\right ) + b \sqrt {c} x \log \left (\frac {x^{2} + 2 \, \sqrt {c} x + c}{x^{2} - c}\right ) - b c \log \left (\frac {x^{2} + c}{x^{2} - c}\right ) - 2 \, a c}{2 \, c x}, -\frac {2 \, b \sqrt {-c} x \arctan \left (\frac {\sqrt {-c} x}{c}\right ) + b \sqrt {-c} x \log \left (\frac {x^{2} - 2 \, \sqrt {-c} x - c}{x^{2} + c}\right ) + b c \log \left (\frac {x^{2} + c}{x^{2} - c}\right ) + 2 \, a c}{2 \, c x}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.22, size = 62, normalized size = 1.35 \[ -b c {\left (\frac {\arctan \left (\frac {x}{\sqrt {-c}}\right )}{\sqrt {-c} c} - \frac {\arctan \left (\frac {x}{\sqrt {c}}\right )}{c^{\frac {3}{2}}}\right )} - \frac {b \log \left (\frac {x^{2} + c}{x^{2} - c}\right )}{2 \, x} - \frac {a}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 44, normalized size = 0.96 \[ -\frac {a}{x}-\frac {b \arctanh \left (\frac {c}{x^{2}}\right )}{x}+\frac {b \arctan \left (\frac {x}{\sqrt {c}}\right )}{\sqrt {c}}+\frac {b \arctanh \left (\frac {\sqrt {c}}{x}\right )}{\sqrt {c}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 57, normalized size = 1.24 \[ \frac {1}{2} \, {\left (c {\left (\frac {2 \, \arctan \left (\frac {x}{\sqrt {c}}\right )}{c^{\frac {3}{2}}} - \frac {\log \left (\frac {x - \sqrt {c}}{x + \sqrt {c}}\right )}{c^{\frac {3}{2}}}\right )} - \frac {2 \, \operatorname {artanh}\left (\frac {c}{x^{2}}\right )}{x}\right )} b - \frac {a}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.96, size = 59, normalized size = 1.28 \[ \frac {b\,\mathrm {atan}\left (\frac {x}{\sqrt {c}}\right )}{\sqrt {c}}-\frac {a}{x}-\frac {b\,\ln \left (x^2+c\right )}{2\,x}+\frac {b\,\ln \left (x^2-c\right )}{2\,x}-\frac {b\,\mathrm {atan}\left (\frac {x\,1{}\mathrm {i}}{\sqrt {c}}\right )\,1{}\mathrm {i}}{\sqrt {c}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 9.31, size = 620, normalized size = 13.48 \[ \begin {cases} - \frac {a}{x} & \text {for}\: c = 0 \\- \frac {a - \infty b}{x} & \text {for}\: c = - x^{2} \\- \frac {a + \infty b}{x} & \text {for}\: c = x^{2} \\\frac {2 i a c^{4}}{- 2 i c^{4} x + 2 i c^{2} x^{5}} - \frac {2 i a c^{2} x^{4}}{- 2 i c^{4} x + 2 i c^{2} x^{5}} + \frac {2 i b c^{\frac {7}{2}} x \log {\left (- \sqrt {c} + x \right )}}{- 2 i c^{4} x + 2 i c^{2} x^{5}} - \frac {b c^{\frac {7}{2}} x \log {\left (- i \sqrt {c} + x \right )}}{- 2 i c^{4} x + 2 i c^{2} x^{5}} - \frac {i b c^{\frac {7}{2}} x \log {\left (- i \sqrt {c} + x \right )}}{- 2 i c^{4} x + 2 i c^{2} x^{5}} + \frac {b c^{\frac {7}{2}} x \log {\left (i \sqrt {c} + x \right )}}{- 2 i c^{4} x + 2 i c^{2} x^{5}} - \frac {i b c^{\frac {7}{2}} x \log {\left (i \sqrt {c} + x \right )}}{- 2 i c^{4} x + 2 i c^{2} x^{5}} + \frac {2 i b c^{\frac {7}{2}} x \operatorname {atanh}{\left (\frac {c}{x^{2}} \right )}}{- 2 i c^{4} x + 2 i c^{2} x^{5}} - \frac {2 i b c^{\frac {3}{2}} x^{5} \log {\left (- \sqrt {c} + x \right )}}{- 2 i c^{4} x + 2 i c^{2} x^{5}} + \frac {b c^{\frac {3}{2}} x^{5} \log {\left (- i \sqrt {c} + x \right )}}{- 2 i c^{4} x + 2 i c^{2} x^{5}} + \frac {i b c^{\frac {3}{2}} x^{5} \log {\left (- i \sqrt {c} + x \right )}}{- 2 i c^{4} x + 2 i c^{2} x^{5}} - \frac {b c^{\frac {3}{2}} x^{5} \log {\left (i \sqrt {c} + x \right )}}{- 2 i c^{4} x + 2 i c^{2} x^{5}} + \frac {i b c^{\frac {3}{2}} x^{5} \log {\left (i \sqrt {c} + x \right )}}{- 2 i c^{4} x + 2 i c^{2} x^{5}} - \frac {2 i b c^{\frac {3}{2}} x^{5} \operatorname {atanh}{\left (\frac {c}{x^{2}} \right )}}{- 2 i c^{4} x + 2 i c^{2} x^{5}} + \frac {2 i b c^{4} \operatorname {atanh}{\left (\frac {c}{x^{2}} \right )}}{- 2 i c^{4} x + 2 i c^{2} x^{5}} - \frac {2 i b c^{2} x^{4} \operatorname {atanh}{\left (\frac {c}{x^{2}} \right )}}{- 2 i c^{4} x + 2 i c^{2} x^{5}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________